#pragma once
#include "stdafx.h"
#include "BufferConstraint.h"
#include "Element.h"
class StreamPage
{
private:
	char* buffer;

public:
	StreamPage(void);
	~StreamPage(void);
	void setNextFreePosition(CHUNK_INDEX_TYPE chunk, MemoryPosition& memoryPosition);
	void getNextFreePosition(CHUNK_INDEX_TYPE chunk, MemoryPosition& memoryPosition);
	void setValue( CHUNK_INDEX_TYPE chunkIndex,Element& element);
	void getValue( CHUNK_INDEX_TYPE chunkIndex,Element& element );
};

